FROM openjdk:17-jdk-alpine
VOLUME /tmp
ADD target/qiyu-live-user-provider-docker.jar ./app.jar
#ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
ENTRYPOINT ["java","-jar","/app.jar"]
EXPOSE 9090

#FROM openjdk:17-jdk-alpine
#VOLUME /tmp
#COPY /arthas-bin.zip /opts/arthas-bin.zip
#ADD qiyu-live-user-provider-docker.jar app.jar
#ENV JAVA_OPTS="\
#-server \
#-Xmx1g \
#-Xms1g \
#-Xmn256m"
#ENTRYPOINT java  ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED -jar app.jar